<!DOCTYPE html>
<html>
<head>
    <title>skd_job</title>
    <#include "/sys/header.html"/>
</head>
<body>
<div class="panel panel-default" id="rrapp" v-cloak>
    <div class="panel-heading">{{title}}</div>
    <form class="form-horizontal">
        <div class="form-group">
            <div class="col-sm-2 control-label">任务名称</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="scheduleJob.jobName" placeholder="任务名称"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">状态</div>
            <div class="col-sm-10">
                <label class="radio-inline">
                    <input type="radio" name="status" value="0" v-model="scheduleJob.status"/> 停用
                </label>
                <label class="radio-inline">
                    <input type="radio" name="status" value="1" v-model="scheduleJob.status"/> 正常
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">cron表达式</div>
            <div class="col-sm-10">
                <iframe id="cronFrame" src="${base}/statics/plugins/cron-quartz/index.html?ctx=/scheduleJob"
                        style="width:660px;height:530px;border:0"></iframe>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label">失败预警方式</div>
            <div class="col-sm-10">
                <template>
                    <el-select v-model="misfireInformIds" multiple placeholder="请选择" style="width:100%;border:1px">
                        <el-option
                                v-for="item in misfireInformIdList"
                                :key="item.dictId"
                                :label="item.dictValue"
                                :value="item.dictId">
                        </el-option>
                    </el-select>
                </template>
            </div>
        </div>

        <div class="form-group">
            <div class="col-sm-2 control-label">描述</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="scheduleJob.remark" placeholder="描述"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">createTime</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="scheduleJob.createTime" placeholder="createTime"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label">updateTime</div>
            <div class="col-sm-10">
                <input type="text" class="form-control" v-model="scheduleJob.updateTime" placeholder="updateTime"/>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-2 control-label"></div>
            <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
            &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="back" value="返回"/>
        </div>
    </form>
</div>

<script src="${base}/js/skd/scheduleJob_add.js?_${.now?string['yyyyMMddhhmmSS']}"></script>
</body>
</html>
